﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace HMS.Contracts.Entities;

/// <summary>
/// 酒店配置
/// <summary>
[DisplayName("酒店配置")]
[Table("HotelConfig")]
public class HotelConfig : EntityBase
{
    [DisplayName("名称")]
    public string Name { get; set; } = string.Empty;

    [DisplayName("法人")]
    public string LegalPerson { get; set; } = string.Empty;

    [DisplayName("许可证")]
    public string License { get; set; } = string.Empty;

    [DisplayName("授权码")]
    public string LicenseKey { get; set; } = string.Empty;

    public class CreateRequest
    {
        public string Name { get; set; } = string.Empty;

        public string LegalPerson { get; set; } = string.Empty;
    }

    public class GetResponse
    {
        [DisplayName("名称")]
        public string Name { get; set; } = string.Empty;

        [DisplayName("法人")]
        public string LegalPerson { get; set; } = string.Empty;

        [DisplayName("许可证")]
        public string License { get; set; } = string.Empty;

        [DisplayName("授权码")]
        public string LicenseKey { get; set; } = string.Empty;

        [DisplayName("Id")]
        [Required]
        public int Id { get; set; }

        [DisplayName("创建日期")]
        public DateTime CreateDate { get; set; } = DateTime.Now;
    }

    public class GetListResponse
    {
        [DisplayName("名称")]
        public string Name { get; set; } = string.Empty;

        [DisplayName("法人")]
        public string LegalPerson { get; set; } = string.Empty;

        [DisplayName("许可证")]
        public string License { get; set; } = string.Empty;

        [DisplayName("授权码")]
        public string LicenseKey { get; set; } = string.Empty;

        [DisplayName("Id")]
        [Required]
        public int Id { get; set; }

        [DisplayName("创建日期")]
        public DateTime CreateDate { get; set; } = DateTime.Now;
    }
}